home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
programming
/
other
/
gui4cli
/
g4c
/
ced
/
reader.gc
< prev
next >
Wrap
Text File
|
1999-05-14
|
857b
|
42 lines
G4C
; A File Reader.
; ======================================================================
; Globals & system events
; ======================================================================
WinBig 10 -1 550 -30 "Loading..."
WinType 11110001
xOnLoad filename
guiopen reader.gc
xOnReload filename
guiopen reader.gc
xOnOpen
if $filename > ' '
guiopen reader.gc
guiscreen reader.gc front
lvuse reader.gc 1
LVChange $filename
SetWinTitle reader.gc '$filename'
else
guiquit reader.gc
endif
;-------> Upon closing, we quit so as not to use-up memory
xOnClose
guiquit reader.gc
; ======================================================================
; The listview
; ======================================================================
xListview 0 0 0 0 "" var "" 20 NUM
GadID 1
GadFont #mono 8 000